package com.jy.controller;


import com.jy.mapper.BuildingMapper;
import com.jy.service.IBuildingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Null
 * @since 2022-11-14
 */
@RestController
@RequestMapping("/building")
public class BuildingController {
    @Autowired
    private IBuildingService iBuildingService;

    @GetMapping("/all")
    public List<BuildingMapper> allBuilding(){
//        log.info("fjfjh");
        List list = iBuildingService.allBuilding();
        return list;
    }

}
